package cn.lyh.gulimall.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import lombok.Data;

/**
 * @author lyh
 * @version 1.0
 * @since 2021/4/6
 */
/**
    * 商品满减信息
    */
@Data
@TableName(value = "sms_sku_full_reduction")
public class SmsSkuFullReduction {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * spu_id
     */
    @TableField(value = "sku_id")
    private Long skuId;

    /**
     * 满多少
     */
    @TableField(value = "full_price")
    private BigDecimal fullPrice;

    /**
     * 减多少
     */
    @TableField(value = "reduce_price")
    private BigDecimal reducePrice;

    /**
     * 是否参与其他优惠
     */
    @TableField(value = "add_other")
    private Boolean addOther;

    public static final String COL_ID = "id";

    public static final String COL_SKU_ID = "sku_id";

    public static final String COL_FULL_PRICE = "full_price";

    public static final String COL_REDUCE_PRICE = "reduce_price";

    public static final String COL_ADD_OTHER = "add_other";
}